import wsgiref.handlers
from google.appengine.ext import webapp

import display.handler_index
import display.handler_results
import display.handler_stats
import display.handler_update


''' Fetches a URL, parses it, compares urls it extracts with the SB API.
'''
def main():
  application = webapp.WSGIApplication(
    [('/', display.handler_index.Index),
     ('/check', display.handler_results.Results),
     ('/update', display.handler_update.Update),
     ('/stats', display.handler_stats.Stats),],
    debug=True)
  wsgiref.handlers.CGIHandler().run(application)

if __name__ == "__main__":
  main()
